# models/payment.py

class Payment:
    def __init__(self, method, amount):
        self.method = method
        self.amount = amount


class BalancePayment(Payment):
    def __init__(self, amount):
        super().__init__("余额", amount)


class CashPayment(Payment):
    def __init__(self, amount):
        super().__init__("现金", amount)


class PointsPayment(Payment):
    def __init__(self, amount):
        super().__init__("积分", amount)
